[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
== % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zap

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Otared Kavian
\starttext > \startmarginrule[1] > \input ward > \stopmarginrule > > \blank > > \startsidebar[Sidebar] > \input zapf > \stopsidebar > \stoptext > == > > In the output, either > > i) the rules do not appear at all (most attempts); or > ii) t

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
ebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zapf \stopsidebar \stoptext == In the output, either i) the rules do not appear

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hans Hagen
rulecolor=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zapf \stopsidebar \stoptext == In the output, either i) the rules do not appear at all (most attempts); or ii) the rules appear for a split-second then disappear (usi

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
\startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zapf \stopsidebar \stoptext == In the output, either i) the rules do not appear at all (most attempts); or ii) the rules appear for a split-second then disappear (using sumatrapdf as the viewer, so the pdf upd

[NTG-context] sidebar and marginrule not working

2023-10-23 Thread Hamid,Idris
=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zapf \stopsidebar \stoptext == In the output, either i) the rules do not appear at all (most attempts); or ii) the rules appear for a split-second then disappear (using sumatrapdf

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread Otared Kavian
t;withcolor linecolor ; >>p := p + stp ; >>exitif arclength( a -- p ) > arclength( a -- b ) ; >>endfor ; >>endgroup ; >>clip currentpic

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread mf
you, Hans. To save this example, I wikified \setupsidebar, \definesidebar and \startsidebar...\stopsidebar. If you do something on alternatives, let me know. Massi ___ If your question is of interest to others as w

[NTG-context] custom zig zag sidebars

2021-04-28 Thread mf
pen pencircle scaled linewidth withcolor linecolor ; fi ; endgroup ; enddef ; \stopMPcode \starttext \startsidebar[zigzag1]\input knuth\relax\stopsidebar\par \blank \startsidebar[zigzag2]\input sapolsky\relax\stopsidebar\par \blank \startsidebar[wave1]\input knuth\relax\stopsidebar\

Re: [NTG-context] Making text disappear depending on mode

2021-02-04 Thread Hans Hagen
{change} {\startsidebar[rulecolor=red]} {}}, after={\doifmodeelse{change} {\stopsidebar} {}}, ] % Paragraph removed %\definestartstop[ChangePR][ % before={\doifmodeelse{change} %{\startsidebar[rulecolor=red]} %{\startbuffer[ignore]}}, % after={\doifmodeelse{change

[NTG-context] Making text disappear depending on mode

2021-02-04 Thread Axel Kielhorn
that is not working. My idea was to put the text into a buffer and ignore it, that didn’t work. % !TEX TS-program = ConTeXt (LuaTeX 1.0.9) % !TEX encoding = UTF-8 Unicode %\enablemode[change] % Paragraph removed \definestartstop[ChangePR][ before={\doifmodeelse{change} {\startsidebar[rulecolor=red

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
> dist/tex/context/base/mkiv/context.mkiv > mtx-context | current version: 2020.03.10 14:44 > mtx-context | main context file: /usr/share/texmf- > dist/tex/context/base/mkiv/context.mkxl > mtx-context | current version: 2020.03.10 14:44 > > So probably I should upgr

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
=\startsidebar, after=\stopsidebar] \starttext \samplefile{ward} \startCPP #include int main(void) { printf("hello, world\n"); } \stopCPP \samplefile{weisman} \stoptext Can you see that there is an additional line before and after the code? How can I get rid of these?

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
; > > > > > > The line should stretch over the whole theorem, not just the first line. > > > > (But the latter would be a beginning, though.) > > > > > > > > Important to note is that the line should be *on the margin*, not in the >

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
greatly appreciate your answer. Thank you! Look for \startsidebar \stopsidebar and \setupsidebar. \setupsidebar [...,...] [..,..=..,..]    1   2   OPT 1 NAME 2 rulethickness  = DIMENSION    rulecolor  = COLOR    alternative    = NUMBER

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
; (But the latter would be a beginning, though.) >>> >>> Important to note is that the line should be *on the margin*, not in the >>> text. >>> >>> So do you have an idea on how I could do that? I would greatly appreciate >>> your >>> answer.

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Johann Birnick
in*, not in the > > text. > > > > So do you have an idea on how I could do that? I would greatly appreciate > > your > > answer. Thank you! > > > Look for \startsidebar \stopsidebar and \setupsidebar. > > \setupsidebar [...,...] [..,..=..,..] >  

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
, not just the first line. (But the latter would be a beginning, though.) Important to note is that the line should be *on the margin*, not in the text. So do you have an idea on how I could do that? I would greatly appreciate your answer. Thank you! Look for \startsidebar \stopsidebar

Re: [NTG-context] Left frame on a block of text

2019-04-21 Thread Otared Kavian
, % topoffset=-2mm ] \defineenumeration[proclaim] [text=, before={\startsidebar[ProclaimSidebar]}, after={\stopsidebar}, style=slanted, title=yes, titleleft=, titleright={.}, % alternative=serried, alternative=hanging

Re: [NTG-context] additional space with sidebar and narrower

2019-04-07 Thread Henning Hraban Ramm
how I can >>>>> avoid that. >>>> Change the order of both environment and put sidebar in the narrower block. >>>> >>>> The reason for the extra line is that \startsidebar begins a new paragraph >>>> but \startnarrower end the lest paragraph w

Re: [NTG-context] additional space with sidebar and narrower

2019-04-07 Thread Hans Hagen
space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block. The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest

Re: [NTG-context] additional space with sidebar and narrower

2019-04-07 Thread Henning Hraban Ramm
hat there’s space introduced if I use both >>> environments, but not if I use only one. And I didn’t find how I can avoid >>> that. >> Change the order of both environment and put sidebar in the narrower block. >> >> The reason for the extra line is that \startside

Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Henning Hraban Ramm
one. And I didn’t find how I can avoid that. > Change the order of both environment and put sidebar in the narrower block. > > The reason for the extra line is that \startsidebar begins a new paragraph > but \startnarrower end the lest paragraph which results in a single empty &

Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Wolfgang Schuster
sidebar in the narrower block. The reason for the extra lien is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line. Wolfgang ___ If your question

Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Henning Hraban Ramm
ebar. Indeed here 5mm should > be replaced with what looks better with your setting of interlinespace. > > Best regards: OK > >> On 26 Mar 2019, at 11:16, Henning Hraban Ramm wrote: >> >> Ahoi, >> I’m trying to mark examples in a book with indent (\startnarrow

Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Otared Kavian
regards: OK > On 26 Mar 2019, at 11:16, Henning Hraban Ramm wrote: > > Ahoi, > I’m trying to mark examples in a book with indent (\startnarrower) and a rule > in the margin (\startsidebar). > Each of those works on its own as it should, but combined there’s an > additio

[NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Henning Hraban Ramm
Ahoi, I’m trying to mark examples in a book with indent (\startnarrower) and a rule in the margin (\startsidebar). Each of those works on its own as it should, but combined there’s an additional empty line before and after introduced that I can’t get rid of. Any hints? \starttext \input tufte

Re: [NTG-context] about the color of sidebar

2019-02-25 Thread Jeong Dal
ir options in "i-context.pdf" file. Thank you for the reply. I found the command “\setupsidebar”. The following example is working well. %%% \definecolor[dGreen][r=0,g=.4,b=0] %\setupsidebar[rulecolor=(.4green)] \setupsidebar[rulecolor=dGreen] \starttext \startsidebar \sam

Re: [NTG-context] about the color of sidebar

2019-02-24 Thread Mohammad Hossein Bateni
gt; 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성: > > On 2/24/2019 12:25 AM, mf wrote: > > BTW \startsidebar ... \stopsidebar stopped working too. > > i'll upload a fix later today > > Hans > > > It is good to know the commnad "\startsidebar … \s

[NTG-context] about the color of sidebar

2019-02-24 Thread Jeong Dal
Dear Hans, > 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성: > > On 2/24/2019 12:25 AM, mf wrote: >> BTW \startsidebar ... \stopsidebar stopped working too. > i'll upload a fix later today > > Hans It is good to know the commnad "\startsidebar … \stopside

Re: [NTG-context] externalfigure broken with 20190222 beta

2019-02-23 Thread Hans Hagen
On 2/24/2019 12:25 AM, mf wrote: BTW \startsidebar ... \stopsidebar stopped working too. i'll upload a fix later today Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

Re: [NTG-context] externalfigure broken with 20190222 beta

2019-02-23 Thread mf
BTW \startsidebar ... \stopsidebar stopped working too. Massimiliano Il 23/02/19 21:58, Hans Hagen ha scritto: On 2/23/2019 5:10 PM, Rik Kabel wrote: With the following example, I get: ...eXt/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:238: attempt to call upvalue 'imgwrap' (a nil

Re: [NTG-context] Using the margin for two purposes

2014-05-19 Thread Hans Hagen
=blue,distance=-\dimexpr\textwidth+2mm] \input tufte \par \startsidebar \input tufte \par \input tufte \par \startsidebar[whow] \input tufte \par \input tufte \par \input tufte \stopsidebar \par \input tufte \par \input tufte \stopsidebar \par \input tufte \par \input tufte

Re: [NTG-context] Using the margin for two purposes

2014-05-19 Thread Matthias Weber
? When I put it into \definesidebar, the sidebar disappears, and when I write \startsidebar[oeps,alternative=1] it reverts to the default left sidebar (albeit dotted). Matthias \setupmargindata [left] [location=right, style=\bfxx] \setupmarginframed[left

Re: [NTG-context] Using the margin for two purposes

2014-05-19 Thread Rik
in the alternative=1 option to get dotted lines? When I put it into \definesidebar, the sidebar disappears, and when I write \startsidebar[oeps,alternative=1] it reverts to the default left sidebar (albeit dotted). Matthias Matthias, You can use distance= in \setupmarginrules to achieve

Re: [NTG-context] A few questions about eating spaces in macros

2006-01-24 Thread Radhelorn
for any suggestions. - \setuplines[before=,after=] \def\startcommand{\dosingleargument\dostartcommand} \def\dostartcommand[#1]% {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} \def\stopcommand{\stopsidebar\stoplines\egroup} \starttext \startcommand this must

Re: [NTG-context] A feq questions about eating spaces in macros

2006-01-23 Thread Hans Hagen
. - \setuplines[before=,after=] \def\startcommand{\dosingleargument\dostartcommand} \def\dostartcommand[#1]% {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} \def\stopcommand{\stopsidebar\stoplines\egroup} \starttext \startcommand this must be bold \input knuth this is bold

[NTG-context] A feq questions about eating spaces in macros

2006-01-22 Thread Radhelorn
[before=,after=] \def\startcommand{\dosingleargument\dostartcommand} \def\dostartcommand[#1]% {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} \def\stopcommand{\stopsidebar\stoplines\egroup} \starttext \startcommand this must be bold \input knuth this is bold% \stopcommand some text

Re: [NTG-context] Back to sidebars.

2005-12-06 Thread Willi Egger
\startsidebar is 'taken'. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman